package com.shuo.demo.controller;

import com.shuo.demo.service.GameService;
import com.shuo.framework.annotation.GGAutowired;
import com.shuo.framework.annotation.GGController;
import com.shuo.framework.annotation.GGRequestMapping;
import com.shuo.framework.servlet.GGModelAndView;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by shuoGG on 2018/9/12 0012
 */
@GGController
@GGRequestMapping("test")
public class TestController {

    @GGAutowired
    private GameService gameService;

    @GGRequestMapping("play")
    public GGModelAndView play() {
        GGModelAndView modelAndView = new GGModelAndView("first.pgml");
        Map<String, Object> param = new HashMap<>();
        param.put("name", "xiaoming");
        modelAndView.setModel(param);
        return modelAndView;
    }
}
